﻿<UserControl x:Class="MiniTwitter.Controls.TextViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Name="UserControl"
	xmlns:MiniTwitter_Properties="clr-namespace:MiniTwitter.Properties">
	<!--edited by yuki.-->
	<FlowDocumentScrollViewer x:Name="_viewer" VerticalScrollBarVisibility="Hidden" MaxZoom="100" MinZoom="100" FocusVisualStyle="{x:Null}">
		<FlowDocument PagePadding="0" 
					FontSize="{Binding Source={x:Static MiniTwitter_Properties:Settings.Default}, Path=FontSize}"
					FontWeight="{Binding Source={x:Static MiniTwitter_Properties:Settings.Default}, Path=FontWeight}"
					FontFamily="{Binding Source={x:Static MiniTwitter_Properties:Settings.Default}, Path=FontName}">
			<Paragraph  x:Name="TextBlock" TextAlignment="Left"/>
			<FlowDocument.ContextMenu>
				<ContextMenu>
					<MenuItem Header="Googleで検索する(_G)" Click="GoogleSearchMenuItem_Click"/>
					<MenuItem Header="コピー(_C)" Command="Copy"/>
					<MenuItem Header="すべてを選択(_A)" Command="SelectAll"/>
				</ContextMenu>
			</FlowDocument.ContextMenu>
		</FlowDocument>
	</FlowDocumentScrollViewer>
	<!--
    <TextBlock x:Name="TextBlock" TextWrapping="{Binding ElementName=UserControl, Path=TextWrapping}" TextTrimming="{Binding ElementName=UserControl, Path=TextTrimming}"/>
	-->
</UserControl>
